import Layout from '@/layout'

export default {
    // 一级路由的地址
    path: '/base',
    // 是用布局作为组件
    component: Layout,
    // 【名称，非常的重要，有可能是作为权限的筛选标识】
    name: 'base',
    meta: { title: '后台管理', icon: 'people' },
    children: [{
            path: '/user',
            component: () =>
                import ('@/views/base/user'),
            name: 'user',
            meta: {
                title: '用户',
                icon: 'table'
            }
        },
        {
            path: 'menus',
            component: () =>
                import ('@/views/base/menus'),
            name: 'student',
            meta: {
                title: '菜单',
                icon: 'table'
            }
        },
        {
            path: 'permission',
            component: () =>
                import ('@/views/base/permission'),
            name: 'permission',
            meta: {
                title: '权限',
                icon: 'table'
            }
        },
        {
            path: 'logs',
            component: () =>
                import ('@/views/base/logs'),
            name: 'logs',
            meta: {
                title: '日志',
                icon: 'table'
            }
        }
    ]
}